package com.ruoyi.am.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 错误日志对象 am_errors
 * 
 * @author hkkk
 * @date 2020-12-21
 */
public class AmErrors extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 错误编号 */
    private Long errorId;

    /** 错误信息 */
    @Excel(name = "错误信息")
    private String errorMsg;

    /** 出错设备 */
    @Excel(name = "出错设备")
    private String errorDevice;

    /** 用户id */
    @Excel(name = "用户id")
    private String userId;

    /** 用户名称 */
    @Excel(name = "用户名称")
    private String userName;

    public void setErrorId(Long errorId) 
    {
        this.errorId = errorId;
    }

    public Long getErrorId() 
    {
        return errorId;
    }
    public void setErrorMsg(String errorMsg) 
    {
        this.errorMsg = errorMsg;
    }

    public String getErrorMsg() 
    {
        return errorMsg;
    }
    public void setErrorDevice(String errorDevice) 
    {
        this.errorDevice = errorDevice;
    }

    public String getErrorDevice() 
    {
        return errorDevice;
    }
    public void setUserId(String userId) 
    {
        this.userId = userId;
    }

    public String getUserId() 
    {
        return userId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("errorId", getErrorId())
            .append("errorMsg", getErrorMsg())
            .append("errorDevice", getErrorDevice())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("createTime", getCreateTime())
            .toString();
    }
}
